/*
 * @Author: YNT 2501512800@qq.com
 * @Date: 2022-08-24 22:56:24
 * @LastEditors: YNT 2501512800@qq.com
 * @LastEditTime: 2022-10-12 09:51:44
 * @FilePath: \洋安未来社区\api\property.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import wxRequest from '../utils/wx-request'

class SpecialModel extends wxRequest {
  // 资产列表
  assetsList(params) {
    return this.request({
      url: `/api/v1/property/list`,
      method: 'GET',
      params,
    })
  }

  // 资产详情
  assetsDetail(id) {
    return this.request({
      url: `/api/v1/property?id=${id}`,
      method: 'GET',
    })
  }

  // 资金列表
  fundList(params) {
    return this.request({
      url: `/api/v1/fund/list`,
      method: 'GET',
      params,
    })
  }

  // 资金详情
  fundDetail(id) {
    return this.request({
      url: `/api/v1/fund?id=${id}`,
      method: 'GET',
    })
  }
}

export default new SpecialModel()
